home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group93a.txt / 000076_icon-group-sender _Mon Mar 1 13:52:20 1993.msg < prev    next >
Internet Message Format  |  1993-04-21  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 1 Mar 1993 16:35:14 MST
  2. Date: 01 Mar 1993 13:52:20 -0600 (CST)
  3. From: Chris Tenaglia - 257-8765 <TENAGLIA@mis.mcw.edu>
  4. Subject: Env Vars
  5. To: icon-group@cs.arizona.edu
  6. Message-Id: <01GVANRLPDTI8WWIGG@mis.mcw.edu>
  7. Organization: Medical College of Wisconsin (Milwaukee, WI)
  8. X-Vms-To: IN%"icon-group@cs.arizona.edu"
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
  11. Content-Transfer-Encoding: 7BIT
  12. Status: R
  13. Errors-To: icon-group-errors@cs.arizona.edu
  14.  
  15.  
  16. In unix, changing and passing environmental variables can be done by
  17. having a shell script set the vaiable and run the icon program. I'm
  18. assuming the child process get the env of the parent. I think I'd
  19. better try this first, but this would be my approach.
  20.  
  21. I suppose one could write a program that would write another program
  22. or script and run it. But I haven't tried this in the X- environment
  23. yet.
  24.  
  25. In DOS I do it a bit differently :
  26.  
  27.           system("SET >_SET.TMP")
  28.           envar      := open("_SET.TMP")
  29.           titlevar   := ""
  30.           every line := !envar do
  31.             if match("TITLE=",line) then titlevar := line[7:0]
  32.           close(envar)
  33.  
  34. Because as of my DOS Icon version, there is no getenv().
  35.  
  36. Chris Tenaglia (System Manager) |  "The past explained,     
  37. Medical College of Wisconsin    |   the future fortold, 
  38. 8701 W. Watertown Plank Rd.     |   the present largely appologized for."
  39. Milwaukee, WI 53226             |   Organon to The Doctor
  40. (414)257-8765                   |     
  41. tenaglia@mis.mcw.edu
  42.  
  43.